import request from "@/utils/requset"
//用户注册
export const userRegisterAPI = (data)=>request.post('/user/register',data)
//用户登录
export const userLoginAPI = (data)=>request.post('/user/login',data)
//获取用户详情
export const getUserInfoAPI = (id)=>request.get(`/user/info?id=${id}`)
//添加实名
export const postReaNameAPI = (data)=>request.post('/reaName/add',data) 
//获取实名信息
export const getReaNameInfoAPI = (id)=>request.get(`/reaName/getReaName?userId=${id}`)
//添加余额
export const postAddBalanceAPI = (data)=>request.get('/user/addBalance')
//修改用户密码
export const updateUserPwdAPI = (data)=>request.post('/user/changePassword',data)